<script setup lang="ts">

const handleClick = (event: Event) => {
  console.log((event.target as HTMLDivElement).innerHTML)
}

const handleBlur = (event: Event) => {
  const value = (event.target as HTMLInputElement).value
  console.log(value)
}
</script>

<template>
  <div>
    <button @click="handleClick">点我</button>
    <input type="text" @blur="handleBlur">
  </div>
</template>

